package com.example.ioc.userConfig;

import com.example.ioc.userController.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class UserConfig {
    @Primary
    @Bean
    public User User1() {
        return new User("a");
    }
    @Bean
    public User User2() {
        return new User("b");
    }
    @Bean
    public User User3() {
        return new User("c");
    }
}
